package cn.tedu.bookstore.controller;

import cn.tedu.bookstore.mapper.BannerMapper;
import cn.tedu.bookstore.pojo.entity.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/banner")
    public class BannerController {
        @Autowired(required = false)
        BannerMapper mapper;
        @RequestMapping("/select")
        public List<Banner> select(){
            return mapper.select();
        }
    }

